/**
 * Created by fq on 2018/1/15 0015.
 */
'use strict';
angular.module('indexApp')
    .controller('mainCtrl',function($scope,$state,$rootScope) {
        var vm=this;
        $scope.state=$state;
        vm.home=function () {
            window.location.href = $rootScope.http_main + '/#/main/home';
        };
        vm.loseWeight=function () {
            window.location.href = $rootScope.http_main + '/#/main/loseWeight';
        };
        vm.personal=function () {
            window.location.href = $rootScope.http_main + '/#/main/personal';
        }
    });